package tests;

import common.Utils;
import org.openqa.selenium.By;

public class MyPostPage extends Utils {

    public static String url = "http://127.0.0.1:58080/index.html";
    public MyPostPage() {
        super(url);
    }

    public void MyPost() throws InterruptedException {

        driver.findElement(By.cssSelector("#index_nav_avatar")).click();
        driver.findElement(By.cssSelector("#index_user_profile")).click();
        //检查“用户名”
        driver.findElement(By.cssSelector("#profile_nickname"));
        //检查“注册时间”
        driver.findElement(By.cssSelector("#bit-forum-content > div.page-header.d-print-none > div > div > div.col > div > div:nth-child(3)"));

        Thread.sleep(3000);
        driver.quit();
    }

}
